package com.huawei.appmarket.service.appdetail.bean.detail;

import android.text.TextUtils;
import java.util.ArrayList;
import o.cdb;
import o.cdg;
import o.ContentManager;
import o.ewm.n;
import org.json.JSONException;
import org.json.JSONObject;

public class DetailAppIntroBean extends DetailDescBean {
    private static final long serialVersionUID = -6702618305232622329L;
    private String appIntroTitle_;
    private String appIntro_;
    private String permisionTitle_;
    private String updateIntroTitle_;
    private String updateIntro_;

    public DetailAppIntroBean() {
        ᐝ(3);
    }

    public void fromJson(JSONObject jSONObject) throws IllegalArgumentException, IllegalAccessException, InstantiationException, ClassNotFoundException, JSONException {
        super.fromJson(jSONObject);
        if (TextUtils.isEmpty(this.appIntroTitle_)) {
            this.appIntroTitle_ = ContentManager.getInstant().getContext().getString(n.ᵎ);
        }
        if (TextUtils.isEmpty(this.updateIntroTitle_)) {
            this.updateIntroTitle_ = ContentManager.getInstant().getContext().getString(n.ﾞॱ);
        }
        if (TextUtils.isEmpty(this.permisionTitle_)) {
            this.permisionTitle_ = ContentManager.getInstant().getContext().getString(n.ꞌॱ);
        }
        int i = -2;
        if (ॱـ() != null) {
            i = ((cdg) cdb.ॱ(cdg.class)).ˋ(ॱـ());
        }
        if (!TextUtils.isEmpty(this.updateIntro_) && (r0 == 3 || r0 == 4 || r0 == 2 || r0 == 1)) {
            ʾ(this.updateIntroTitle_);
            ˈ(this.updateIntro_);
            ˎ(new ArrayList());
            ʻ(new ArrayList());
            if (!TextUtils.isEmpty(this.appIntro_)) {
                ꓸ().add(this.appIntroTitle_);
                ꜞ().add(this.appIntro_);
            }
        } else if (!TextUtils.isEmpty(this.appIntro_)) {
            ʾ(this.appIntroTitle_);
            ˈ(this.appIntro_);
            ˎ(new ArrayList());
            ʻ(new ArrayList());
            if (!TextUtils.isEmpty(this.updateIntro_)) {
                ꓸ().add(this.updateIntroTitle_);
                ꜞ().add(this.updateIntro_);
            }
        }
    }
}
